export function pagination(totalCount, pageSize = 15, currentPage = 1) {
  return {
    total_count: totalCount,
    total_page: totalCount / pageSize + 1,
    current_page: currentPage,
    page_size: pageSize,
  };
}

export function response(result = null, code = 200, msg = 'ok') {
  return {
    code,
    msg,
    ...result,
  };
}
